import Cookies from 'js-cookie'

// const TokenKey = 'Admin-Token'

export function getToken(TokenKey) {
  return Cookies.get(TokenKey)
}

export function setToken(TokenKey,token,expires) {
	if(expires){
		return Cookies.set(TokenKey, token,{expires: (expires?expires:1)});
	}else{
		return Cookies.set(TokenKey, token);
	}
  
}

export function removeToken(TokenKey) {
  return Cookies.remove(TokenKey)
}
